import java.sql.SQLOutput;

public class test {
    public static void main123(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.treeNode root =  binaryTree.createBinaryTree();
//        binaryTree.preOrder(root);
//        System.out.println();
//        binaryTree.inOrder(root);
//        System.out.println();
//        binaryTree.postOrder(root);
//        System.out.println();
//        System.out.println(binaryTree.size(root));
//        System.out.println(binaryTree.size2(root));
//        System.out.println(binaryTree.getLeafNodeCount(root));
//        System.out.println("" + binaryTree.getLeafNodeCount2(root));
//        System.out.println("叶子结点的个数" + binaryTree.getLevelNodeCount(root,3));
//        System.out.println("树的高度：" + binaryTree.getHigh(root));
//        System.out.println("树的高度：" + binaryTree.getHigh2(root));

    }
}
